package com.zxp.springcloud.alibaba.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * @author 18503
 */
@Mapper
public interface AccountDao {

    /**
     * 扣减账户余额
     * @Description
     * @Author zxp
     * @param userId 用户id
     * @param money 钱
     */
    void decrease(@Param("userId") Long userId, @Param("money") BigDecimal money);
}
